package com.fzn.fznspringboot.config;

import com.fzn.fznspringboot.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @program: spring-boot
 * 描述：
 * @author: fzn
 * @create: 2022-11-23 00:49
 **/
@Configuration
@ComponentScan("com.fzn.fznspringboot")
public class FznConfig {

    // 注入bean  person 注入到spring容器
    @Bean
    public Person person(){
        return new Person();
    }
}